#ifndef MEMFILE_H
#define MEMFILE_H

typedef struct
{
    void* filep;
    int isfile;
} MEMFILE;

MEMFILE *memfopen (const char* filename, const char* mode);
void memfread(void* data, int size, MEMFILE *f);
void memfclose(MEMFILE *f);

#endif
